"""
多线程
"""
import threading
import time


def sing(msg):
    while True:
        print(f"我在唱歌，歌名：{msg}")
        time.sleep(1)

def dance(msg):
    while True:
        print(f"我在跳舞，类型：{msg}")
        time.sleep(1)

if __name__ == '__main__':
    sing_thread=threading.Thread(target=sing,args=("五星红旗",))
    dance_thread=threading.Thread(target=dance,kwargs={"msg":"拉丁"})

    sing_thread.start()
    dance_thread.start()
